package com.retirement.audit.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author lijy
 * @since 2023-12-25
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("old_audit")
@ApiModel(value = "OldAudit对象", description = "")
public class OldAudit implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("表id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("信息id")
    private String dataId;

    @ApiModelProperty("资源类型")
    private String dataType;

    @ApiModelProperty("审核状态 0未审核 1已审核")
    private String state;

    @ApiModelProperty("审核结果 1审核通过 3审核不通过")
    private String result;

    @ApiModelProperty("申请人id")
    private String applicantId;

    @ApiModelProperty("审核意见")
    private String remarks;

    @ApiModelProperty("审核人id")
    private String auditorId;

    @ApiModelProperty("审核人姓名")
    private String auditorName;

    @ApiModelProperty("排序字段")
    private Integer sortingNo;

    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("编辑时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

}
